<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="st" uri="/as-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>选择课程</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
		<s:head />
	</head>

	<body>
		<jsp:include page="head.jsp"></jsp:include>
		<div class="content">

			<h1>
				选择课程
			</h1>
			<s:form action="viewAttendanceDetail" theme="simple" >
	
	开课时间<s:datetimepicker name="startTime" type="date"
					displayFormat="yyyy-MM-dd" displayWeeks="5" />
	结课时间<s:datetimepicker name="endTime" type="date"
					displayFormat="yyyy-MM-dd" displayWeeks="5" />
				<s:submit value="查询" />
			</s:form>
			<table class="list" id="chooseCourse" align="center">
				<tr>
					<td>
						课程编号
					</td>
					<td>
						名称
					</td>
					<td>
						开课时间
					</td>
					<td>
						结课时间
					</td>
					<td>
						学时
					</td>
				</tr>
				<s:iterator value="list" id="courseList">

					<tr>
						<td>
							<s:property value="courseNo" />
						</td>
						<td>
							<a
								href="<s:property value='url'  />courseId=<s:property value='courseId' />">
								<s:property value="name" /> </a>
						</td>
						<td>
							<s:date name="endTime" format="yyyy-MM-dd" />
						</td>
						<td>
							<s:date name="endTime" format="yyyy-MM-dd" />
						</td>
						<td>
							<s:property value="classHour" />
						</td>
					</tr>



				</s:iterator>

			</table>
			<st:pageCode
				url="chooseCourse.action?startTime=${startTime}&endTime=${endTime}&pageNo=:pageNo"
				maxPageNo="${maxPageNo}" currentPageNo="${pageNo}" />
		</div>
	</body>
</html>
